﻿<UserControl x:Class="ViCode_LeVi.Controls.VMTabBalanceAndOthers_InvestmentPlan"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:vmcontrol="clr-namespace:ViCode_LeVi.Controls">
    <ScrollViewer>
        <StackPanel>
            <DockPanel>
                <StackPanel DockPanel.Dock="Right" Orientation="Horizontal" HorizontalAlignment="Right" >
                    <vmcontrol:VMTextBlockExt  Margin="2" TextPath="CurrencySymbol_UI" />
                    <vmcontrol:VMTextBox_Number  Margin="2" Text="{Binding CurrencySymbol}"/>
                    <Button Content="Print" Click="Button_Click"/>
                </StackPanel>
                <StackPanel Orientation="Horizontal">
                    <vmcontrol:VMTextBlock_Fincance_Title TextPath="Step_BalanceAndOthers_InvestmentPlan_Header" Margin="2"/>
                </StackPanel>
            </DockPanel>
<vmcontrol:VMTextBlock_Fincance_Space_Header/>
            <StackPanel Margin="2,20,2,20">
                <Grid >
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="4*"/>
                        <ColumnDefinition Width="2*"/>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="4*"/>
                        <ColumnDefinition Width="4*"/>
                        <ColumnDefinition Width="4*"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>

                    <vmcontrol:VMTextBlockExt TextPath="UIText_InvestmentsForMachinery" Grid.Column="0" Grid.RowSpan="2" Margin="2"/>
                    <vmcontrol:VMTextBlockExt TextPath="UIText_Value"  HorizontalAlignment="Center"  Grid.Column="1" Grid.Row="0" Margin="2"/>
                    <vmcontrol:VMTextBlockExt TextPath="UIText_TimeOfInvestment" HorizontalAlignment="Center" Grid.Column="2" Grid.Row="0" Grid.ColumnSpan="5" Margin="2"/>
                    <vmcontrol:VMTextBlockExt TextPath="UIText_Year1" Grid.Column="2" Grid.Row="1" Margin="2"/>
                    <vmcontrol:VMTextBlockExt TextPath="UIText_Year2" Grid.Column="3" Grid.Row="1" Margin="2"/>
                    <vmcontrol:VMTextBlockExt TextPath="UIText_Year3" Grid.Column="4" Grid.Row="1" Margin="2"/>
                    <vmcontrol:VMTextBlockExt TextPath="UIText_Year4" Grid.Column="5" Grid.Row="1" Margin="2"/>
                    <vmcontrol:VMTextBlockExt TextPath="UIText_Year5" Grid.Column="6" Grid.Row="1" Margin="2"/>
                    <vmcontrol:VMTextBlockExt TextPath="UIText_UseFor" Grid.Column="7" Margin="2" Grid.RowSpan="2" />
                    <vmcontrol:VMTextBlockExt TextPath="UIText_FinancingMethod" Grid.Column="8"  Grid.RowSpan="2" Margin="2"/>
                    <vmcontrol:VMTextBlockExt TextPath="UIText_AdditionalRemark" Grid.Column="9"  Grid.RowSpan="2" Margin="2"/>

                    <Button VerticalAlignment="Top" Visibility="Hidden"  OverridesDefaultStyle="True" MinHeight="0" MinWidth="0" Margin="2"  Grid.Column="10"  Focusable="False">
                        <Button.Content>
                            <Image Source="pack://application:,,,/Images/closex.png" Stretch="Uniform"/>
                        </Button.Content>
                    </Button>
                </Grid>
                
                <StackPanel Name="Panel_Investment">
                    
                </StackPanel>
                <Grid >
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="4*"/>
                        <ColumnDefinition Width="2*"/>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="4*"/>
                        <ColumnDefinition Width="4*"/>
                        <ColumnDefinition Width="4*"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <vmcontrol:VMTextBlockExt TextPath="UIText_Total" Grid.Column="0" Grid.RowSpan="2" Margin="2"/>
                    <vmcontrol:VMTextBox_Number_ReadOnly FontWeight="Bold" Text="{Binding Total_Investment, Mode = OneWay}" Grid.Column="1" Margin="2"/>


                    <StackPanel Grid.Column="2" Grid.ColumnSpan="9"  HorizontalAlignment="Right" Orientation="Horizontal" >
                        <Button Margin="2"  Name="Button_AddNew_Investment" >
                            <Button.Content>
                                Add new
                            </Button.Content>
                        </Button>
                    </StackPanel>


                    <Button VerticalAlignment="Top" Visibility="Hidden"  OverridesDefaultStyle="True" MinHeight="0" MinWidth="0" Margin="2"  Grid.Column="10"  Focusable="False">
                        <Button.Content>
                            <Image Source="pack://application:,,,/Images/closex.png" Stretch="Uniform"/>
                        </Button.Content>
                    </Button>
                </Grid>
                
            </StackPanel>

            <StackPanel Margin="2,20,2,20">
                <Grid >
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="4*"/>
                        <ColumnDefinition Width="2*"/>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="4*"/>
                        <ColumnDefinition Width="4*"/>
                        <ColumnDefinition Width="4*"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>

                    <vmcontrol:VMTextBlockExt TextPath="UIText_SellMachinery" Grid.Column="0" Grid.RowSpan="2" Margin="2"/>
                    <vmcontrol:VMTextBlockExt TextPath="UIText_Value"  HorizontalAlignment="Center"  Grid.Column="1" Grid.Row="0" Margin="2"/>
                    <vmcontrol:VMTextBlockExt TextPath="UIText_TimeOfInvestment" HorizontalAlignment="Center" Grid.Column="2" Grid.Row="0" Grid.ColumnSpan="5" Margin="2"/>
                    <vmcontrol:VMTextBlockExt TextPath="UIText_Year1" Grid.Column="2" Grid.Row="1" Margin="2"/>
                    <vmcontrol:VMTextBlockExt TextPath="UIText_Year2" Grid.Column="3" Grid.Row="1" Margin="2"/>
                    <vmcontrol:VMTextBlockExt TextPath="UIText_Year3" Grid.Column="4" Grid.Row="1" Margin="2"/>
                    <vmcontrol:VMTextBlockExt TextPath="UIText_Year4" Grid.Column="5" Grid.Row="1" Margin="2"/>
                    <vmcontrol:VMTextBlockExt TextPath="UIText_Year5" Grid.Column="6" Grid.Row="1" Margin="2"/>
                    <vmcontrol:VMTextBlockExt TextPath="UIText_UseFor" Grid.Column="7" Margin="2" Grid.RowSpan="2" />
                    <vmcontrol:VMTextBlockExt TextPath="UIText_FinancingMethod" Grid.Column="8"  Grid.RowSpan="2" Margin="2"/>
                    <vmcontrol:VMTextBlockExt TextPath="UIText_AdditionalRemark" Grid.Column="9"  Grid.RowSpan="2" Margin="2"/>

                    
                    <Button VerticalAlignment="Top" Visibility="Hidden"  OverridesDefaultStyle="True" MinHeight="0" MinWidth="0" Margin="2"  Grid.Column="10"   Focusable="False">
                        <Button.Content>
                            <Image Source="pack://application:,,,/Images/closex.png" Stretch="Uniform"/>
                        </Button.Content>
                    </Button>
                </Grid>

                <StackPanel Name="Panel_Sell">

                </StackPanel>

                <Grid >
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="4*"/>
                        <ColumnDefinition Width="2*"/>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="4*"/>
                        <ColumnDefinition Width="4*"/>
                        <ColumnDefinition Width="4*"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <vmcontrol:VMTextBlockExt TextPath="UIText_Total" Grid.Column="0" Grid.RowSpan="2" Margin="2"/>
                    <vmcontrol:VMTextBox_Number_ReadOnly FontWeight="Bold" Text="{Binding Total_Sell, Mode = OneWay}" Grid.Column="1" Margin="2"/>

                    <StackPanel HorizontalAlignment="Right" Grid.Column="2" Grid.ColumnSpan="9" Orientation="Horizontal">
                        <Button Margin="2"  Name="Button_AddNew_Sell" >
                            <Button.Content>
                                Add new
                            </Button.Content>
                        </Button>
                    </StackPanel>

                    <Button VerticalAlignment="Top" Visibility="Hidden"  OverridesDefaultStyle="True" MinHeight="0" MinWidth="0" Margin="2"  Grid.Column="10"  Focusable="False">
                        <Button.Content>
                            <Image Source="pack://application:,,,/Images/closex.png" Stretch="Uniform"/>
                        </Button.Content>
                    </Button>
                </Grid>
               
            </StackPanel>    
           
        </StackPanel>
    </ScrollViewer>
</UserControl>
